<?php
namespace app\admin\model;
use think\Model;
class Sitepro extends Model {

    //自定义内容
    protected $pk = 'id';

    public function getKfwxAttr($value,$data){
        $res=Files::find($value);
        return $res;
    }
    public function getKfqqAttr($value,$data){
        $res=Files::find($value);
        return $res;
    }

    public function getLogoAttr($value,$data){
        $res=Files::find($value);
        return $res;
    }
    public function setKfwxAttr($value,$data){
        if(isset($value['id'])){
            return $value['id'];
        }else{
            return $value;
        }
    }
    public function setKfqqAttr($value,$data){
        if(isset($value['id'])){
            return $value['id'];
        }else{
            return $value;
        }
    }
    public function setLogoAttr($value,$data){
        if(isset($value['id'])){
            return $value['id'];
        }else{
            return $value;
        }
    }


}
?>